import {store} from "../store";
import {ACTION_AUTH} from "../store/action";
import TokenManager from "./WtTokenManager";

export const logout = () => {
    TokenManager.removeToken();
    store.dispatch({
        type:ACTION_AUTH.LOGOUT
    });
};